From: Florian Müllner Date: Thu, 30 Jun 2022 13:29:55 +0000 (+0200) Subject: layout: Use constraint to resize screenShieldGroup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~288 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=abe9ba4b0f9be92f2ceeb198d11f9aff96301a9b;p=gnome-shell.git layout: Use constraint to resize screenShieldGroup We want the actor to always fill the entire uiGroup. It seems better and simpler to express that with a contraint than resizing it explicitly on every monitor change. Part-of: --- diff --git a/js/ui/layout.js b/js/ui/layout.js index fe91ff186..0292dd002 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -241,6 +241,10 @@ var LayoutManager = GObject.registerClass({ visible: false, clip_to_allocation: true, layout_manager: new Clutter.BinLayout(), + constraints: new Clutter.BindConstraint({ + source: this.uiGroup, + coordinate: Clutter.BindCoordinate.ALL, + }), }); this.addChrome(this.screenShieldGroup); @@ -521,9 +525,6 @@ var LayoutManager = GObject.registerClass({ } _updateBoxes() { - this.screenShieldGroup.set_position(0, 0); - this.screenShieldGroup.set_size(global.screen_width, global.screen_height); - if (!this.primaryMonitor) return;